package com.heima.kafka.controller;

import com.heima.kafka.producer.KafkaProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class KafkaController {
    @Autowired
    private KafkaProducer producer;
    @RequestMapping("/kfk")
    public String demo1(){
        producer.producer();
        return "ok";
    }
}
